import Vue from 'vue' //引入 Vue
import VueRouter from 'vue-router' //引入 Vue 路由

Vue.use(VueRouter); //安装插件

export const constantRouterMap = [
    //配置默认的路径，默认显示登录页
    {path: '/', component: () => import('@/components/blocklist/Index2')},

    {path: '/propertylist/:id', component: () => import('@/components/propertylist/IndexWIthTable')},

    {path: '/propertylist/:id/:detailid', component: () => import('@/components/propertydetail/IndexWithTabs')},
]

export default new VueRouter({
    mode: 'history', //后端支持可开
    base: 'propertycp',
    scrollBehavior: () => ({y: 0}),
    routes: constantRouterMap //指定路由列表
})
